﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain
{
    /// <summary>
    /// 角色表
    /// </summary>
    [Table("Roles")]
    public class Roles
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        [Key]
        public int roleId {  get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string? roleName {  get; set; }
        /// <summary>
        /// 删除标志
        /// </summary>
        public bool IsDel {  get; set; }=false;
        /// <summary>
        /// 是否是领导
        /// </summary>
        public bool IsNo { get; set; } = false;

        /// <summary>
        /// 添加人
        /// </summary>
        public string? addName { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? addDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? updateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? updateDate { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public string? delName { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? delDate { get; set; }
    }
}
